package chapter3;

import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.jface.window.*;


public class WidgetWindow extends ApplicationWindow 
{
	public WidgetWindow() 
	{
		super(null);
	}

	protected Control createContents(Composite parent) 
	{
		TabFolder tf = new TabFolder(parent, SWT.NONE);
		TabItem chap3 = new TabItem(tf,SWT.NONE);
		chap3.setText("Chapter 3");
		chap3.setControl(new Ch3_Composite(tf));
		getShell().setText("Widget Window");
		return parent;
	}
	
	public static void main(String[] args) 
	{
		WidgetWindow wwin = new WidgetWindow();
		wwin.setBlockOnOpen(true);
		wwin.open();
		Display.getCurrent().dispose();
	}
}